package org.yray.sip.time;


import org.yray.sip.server.SipServerHandler;
import org.yray.sip.server.SipSession;

public class SendSipTask extends BaseSendTask {
    private String msg;
    private SipServerHandler sipServerHandler;
    private SipSession sipSession;
    public SendSipTask(long time, SipServerHandler sipServerHandler, String msg, SipSession sipSession)
    {
        this.time=time;
        this.sipServerHandler=sipServerHandler;
        this.msg=msg;
        this.sipSession=sipSession;
    }
    @Override
    public void doJob() {
        sipServerHandler.sendToSipServer(sipSession,msg);
    }
}
